package reuse.agency;

/**
 * 代理方式构建飞船
 *
 * @author sun.ye
 * @since 2020-05-12 14:46
 */
public class SpaceShipDelegation {

    private String name;
    private SpaceShipControls controls = new SpaceShipControls();

    public SpaceShipDelegation(String name) {
        this.name = name;
    }

    public void up(int velocity){
        controls.up(velocity);
    }

    public void down(int velocity) {
        controls.down(velocity);
    }
}